<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
    <title>文章编辑</title>
</head>
<body>
    <form action="article_${id == null ?'add':'edit'}.action" method="post">
      <%--<s:hidden value="id"></s:hidden>--%>
      <input type="hidden" name="id" value="${id}">
      用户名:<input type="text" name="username" value="${username}">
      <br/>
      标题:<input type="text" name="title" value="${title}">
      <br/>
      文章内容:<textarea name="content">${content}</textarea>
      <br/>
      <button type="submit">提交文章</button>
    </form>
</body>
</html>
